Skip to content

Replayable receipts: record a sandboxed run, verify it by replay - #21

Open
alakanani wants to merge 1 commit into
mainfrom
receipts-2026-11
Open

alakanani wants to merge 1 commit into
mainfrom
receipts-2026-11

Conversation

@alakanani

Copy link
Copy Markdown
Collaborator

Direction Phase 2, replayable receipts. A receipt records one sandboxed run with its source, so anyone holding only the receipt file can replay it and confirm the recorded result.

What lands:

  • godcode receipt record scroll.god writes the receipt document: source, source fingerprint, revealed lines, outcome, failure when the run failed, discerned intents, permission manifest, and the receipt's own fingerprint.
  • godcode receipt verify receipt.json checks the seal first (a doctored record is refused before any replay), then replays the source sandboxed and compares outcome, revealed lines, and failure code. Exit 0 only when every comparison matches.
  • The receipt shape is frozen under the dated schema https://getgodcode.com/schemas/2026-11/receipt.json, printed by godcode schema receipt. The schema list grows from four names to five.
  • Docs: docs/receipts.md (including the honest limits: sandboxed runs only, no chain file touched, changing values replay differently, local imports need --import-dir at verify time), docs/machine-interfaces.md, AGENTS.md, docs/agentics.md, CHANGELOG.md entry.
  • Example examples/receipt_demo.god and 14 new tests in tests/test_receipts.py. Full suite green: 1080 passed. Playground bundle rebuilt.

@vercel

vercel Bot commented Nov 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
godcode Ready Ready Preview Nov 4, 2026 10:42am UTC

@koketso2017

Copy link
Copy Markdown
Collaborator

Reviewed the description and the changes. The scope matches what’s described: record and verify commands, a frozen receipt schema, docs including the limits section, an example, and tests.

@koketso2017 koketso2017 reopened this Nov 17, 2026
@koketso2017

Copy link
Copy Markdown
Collaborator

Reviewed the description and the changes. The scope matches what’s described: record and verify commands, a frozen receipt schema, docs including the limits section, an example, and tests.

This branch was successfully deployed

1 active deployment
Preview — 312a6932 Deployed Nov 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants